package nmrworkflow.framework.beans.datatypes;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;


public class NmrFile extends File implements Streamable {
	public NmrFile(String pathname)
	{
		super(pathname);
	}
	
	public NmrFile(File f)
	{
		super(f.getAbsolutePath());
	}
	
	public InputStream getInputStream() throws IOException
	{
		return new FileInputStream(this);
	}
	
	public OutputStream getOutputStream() throws IOException
	{
		return new FileOutputStream(this);
	}
}
